﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.ComponentModel;
using System.Web.Script.Services;
using Blog.Core;

namespace Blog
{
    /// <summary>
    /// Summary description for Finder
    /// </summary>
    [WebService(Namespace = "http://localhost/Find/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    [ScriptService]
    [GenerateScriptType(typeof(FindResultItem))]
    public class Finder : System.Web.Services.WebService
    {
        [WebMethod]
        public FindResultCollection FindData(string text, int pageId, bool findHeaders, bool findContext)
        {
            return ViewController.Find(text, pageId, findHeaders, findContext);
        }
    }
}
